﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleData.Data
{

	/// <summary>
	/// Não carrega nenhum relacionamento, somente as propriedades do objeto
	/// </summary>
	/// <typeparam name="TEntity"></typeparam>
	public class ReadOnlyFetchStrategy<TEntity> : IFetchStrategy<TEntity>
		where TEntity : class
	{
		public IQueryable<TEntity> Configure( IQueryable<TEntity> query )
		{
			return query.NoTracking();
		}
	}
}
